package io;

import java.io.File;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Li_yizYa
 * Date: 2025—04—22
 * Time: 16:33
 */
public class Demo4 {
    public static void main(String[] args) {
        // deleteOnExit 在进程退出的时候删除
        File file = new File("./test.txt");
        file.deleteOnExit();
        System.out.println("执行删除完毕");
        Scanner scan = new Scanner(System.in);
        scan.next();
    }
}
